package com.ys.web.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ys.annotation.YsCsv;

/**
 * 创意
 **/
@SuppressWarnings("serial")
@Entity
@Table(name = "originality", catalog = "ysanalyze")
public class Originality {

	
	private Integer id;
	
	
	private Date importDate;
	
	private Integer userId;
	
	
	private Integer companyId;
	
	
	private Integer accountId;
	
	/**推广日期*/
	@YsCsv(column="日期")
	private Date promotionDate;	
	
	/**账户*/
	@YsCsv(column="账户")
	private String account;	
	
	/**推广计划*/
	@YsCsv(column="推广计划")
	private String promotionPlan;	
	
	/**推广单元*/
	@YsCsv(column="推广单元")
	private String promotionUnit;	
	
	/**创意标题*/
	@YsCsv(column="创意标题")
	private String originalityTitle;	
	
	/**创意描述1*/
	@YsCsv(column="创意描述1")
	private String originalityDescribeOne;	
	
	/**创意描述2*/
	@YsCsv(column="创意描述2")
	private String originalityDescribeTwo;	
	
	/**显示URL*/
	@YsCsv(column="显示URL")
	private String displayURL;	
	
	/**展现*/
	@YsCsv(column="展现")
	private Integer numberExhibit;	
	
	/**点击*/
	@YsCsv(column="点击")
	private Integer numberClick;	
	
	/**消费*/
	@YsCsv(column="消费")
	private Double consume;
	
	/**点击率*/
	@YsCsv(column="点击率")
	private Double clickRate;
	
	/**平均点击价格*/
	@YsCsv(column="平均点击价格")
	private Double cpc;
	
	/**平均排名*/
	@YsCsv(column="平均排名")
	private Double averageRanking;
	
	/**网页转化*/
	@YsCsv(column="网页转化")
	private Integer webPageConsult;
	
	/**商桥转化*/
	@YsCsv(column="商桥转化")
	private Integer bridgeConsult;
	
	/**电话转化*/
	@YsCsv(column="电话转化")
	private Integer phoneConsult;
	
	
	public Originality() {}

	public Originality(Integer id, Date importDate, Integer userId, Integer companyId, Integer accountId,
			Date promotionDate, String account, String promotionPlan, String promotionUnit, String originalityTitle,
			String originalityDescribeOne, String originalityDescribeTwo, String displayURL, Integer numberExhibit,
			Integer numberClick, Double consume, Double clickRate, Double cpc, Double averageRanking,
			Integer webPageConsult, Integer bridgeConsult, Integer phoneConsult) {
		super();
		this.id = id;
		this.importDate = importDate;
		this.userId = userId;
		this.companyId = companyId;
		this.accountId = accountId;
		this.promotionDate = promotionDate;
		this.account = account;
		this.promotionPlan = promotionPlan;
		this.promotionUnit = promotionUnit;
		this.originalityTitle = originalityTitle;
		this.originalityDescribeOne = originalityDescribeOne;
		this.originalityDescribeTwo = originalityDescribeTwo;
		this.displayURL = displayURL;
		this.numberExhibit = numberExhibit;
		this.numberClick = numberClick;
		this.consume = consume;
		this.clickRate = clickRate;
		this.cpc = cpc;
		this.averageRanking = averageRanking;
		this.webPageConsult = webPageConsult;
		this.bridgeConsult = bridgeConsult;
		this.phoneConsult = phoneConsult;
	}

	@Override
	public String toString() {
		return "OriginalityInfo [id=" + id + ", importDate=" + importDate + ", userId=" + userId + ", companyId="
				+ companyId + ", accountId=" + accountId + ", promotionDate=" + promotionDate + ", account=" + account
				+ ", promotionPlan=" + promotionPlan + ", promotionUnit=" + promotionUnit + ", originalityTitle="
				+ originalityTitle + ", originalityDescribeOne=" + originalityDescribeOne + ", originalityDescribeTwo="
				+ originalityDescribeTwo + ", displayURL=" + displayURL + ", numberExhibit=" + numberExhibit
				+ ", numberClick=" + numberClick + ", consume=" + consume + ", clickRate=" + clickRate + ", cpc=" + cpc
				+ ", averageRanking=" + averageRanking + ", webPageConsult=" + webPageConsult + ", bridgeConsult="
				+ bridgeConsult + ", phoneConsult=" + phoneConsult + "]";
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	
	@Column(name="promotion_date")
	public Date getPromotionDate() {
		return promotionDate;
	}

	public void setPromotionDate(Date promotionDate) {
		this.promotionDate = promotionDate;
	}

	@Column(name="account")
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name="promotion_plan")
	public String getPromotionPlan() {
		return promotionPlan;
	}

	public void setPromotionPlan(String promotionPlan) {
		this.promotionPlan = promotionPlan;
	}

	@Column(name="promotion_unit")
	public String getPromotionUnit() {
		return promotionUnit;
	}

	public void setPromotionUnit(String promotionUnit) {
		this.promotionUnit = promotionUnit;
	}

	@Column(name="originality_title")
	public String getOriginalityTitle() {
		return originalityTitle;
	}

	public void setOriginalityTitle(String originalityTitle) {
		this.originalityTitle = originalityTitle;
	}

	@Column(name="originality_describe_one")
	public String getOriginalityDescribeOne() {
		return originalityDescribeOne;
	}

	public void setOriginalityDescribeOne(String originalityDescribeOne) {
		this.originalityDescribeOne = originalityDescribeOne;
	}

	@Column(name="originality_describe_two")
	public String getOriginalityDescribeTwo() {
		return originalityDescribeTwo;
	}

	public void setOriginalityDescribeTwo(String originalityDescribeTwo) {
		this.originalityDescribeTwo = originalityDescribeTwo;
	}

	@Column(name="display_url")
	public String getDisplayURL() {
		return displayURL;
	}

	public void setDisplayURL(String displayURL) {
		this.displayURL = displayURL;
	}

	@Column(name="number_exhibit")
	public Integer getNumberExhibit() {
		return numberExhibit;
	}

	public void setNumberExhibit(Integer numberExhibit) {
		this.numberExhibit = numberExhibit;
	}

	
	@Column(name="number_click")
	public Integer getNumberClick() {
		return numberClick;
	}

	public void setNumberClick(Integer numberClick) {
		this.numberClick = numberClick;
	}

	@Column(name="consume")
	public Double getConsume() {
		return consume;
	}

	public void setConsume(Double consume) {
		this.consume = consume;
	}

	@Column(name="click_rate")
	public Double getClickRate() {
		return clickRate;
	}

	public void setClickRate(Double clickRate) {
		this.clickRate = clickRate;
	}

	@Column(name="cpc")
	public Double getCpc() {
		return cpc;
	}

	public void setCpc(Double cpc) {
		this.cpc = cpc;
	}

	@Column(name="average_ranking")
	public Double getAverageRanking() {
		return averageRanking;
	}

	public void setAverageRanking(Double averageRanking) {
		this.averageRanking = averageRanking;
	}

	@Column(name="webpage_consult")
	public Integer getWebPageConsult() {
		return webPageConsult;
	}

	public void setWebPageConsult(Integer webPageConsult) {
		this.webPageConsult = webPageConsult;
	}

	@Column(name="bridge_consult")
	public Integer getBridgeConsult() {
		return bridgeConsult;
	}

	public void setBridgeConsult(Integer bridgeConsult) {
		this.bridgeConsult = bridgeConsult;
	}

	@Column(name="phone_consult")
	public Integer getPhoneConsult() {
		return phoneConsult;
	}

	public void setPhoneConsult(Integer phoneConsult) {
		this.phoneConsult = phoneConsult;
	}

	/**文件导入时间*/
	@Column(name="import_date")
	public Date getImportDate() {
		return importDate;
	}

	public void setImportDate(Date importDate) {
		this.importDate = importDate;
	}

	/**文件导入者*/
	@Column(name="user_id")
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	/**代运营公司id*/
	@Column(name="company_id")
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	/**代运营公司账号id*/
	@Column(name="account_id")
	public Integer getAccountId() {
		return accountId;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}
}
